#ifndef OBSERVER_HPP_INCLUDED
#define OBSERVER_HPP_INCLUDED

#include "process.hpp"
class Image;

class Observer
{
public:
    Observer(Process *pro)
    {
		_pro = pro;
		_pro->Attach(this);
	}
    virtual ~Observer(){}

	//为c++单独增加的函数，用于删除时查找观察者。
	
	virtual void Update(const Image &image) = 0;
	
	Image out_image;

protected:
	Process *_pro;

};
#endif // OBSERVER_HPP_INCLUDED
